package com.baosight.risk.service.workflow.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Table: T_WORKFLOW_AUTH
 */
@Data
@Table(name = "T_WORKFLOW_AUTH")
public class WorkflowAuth implements Serializable {
    /**
     * 主键
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    ID
     * Nullable:  false
     */
    @Id
    @Column(name = "ID")
    private String id;

    /**
     * 流程定义ID
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    PROCESS_DEF_ID
     * Nullable:  true
     */
    @Column(name = "PROCESS_DEF_ID")
    private String processDefId;

    /**
     * 流程定义编码
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    PROCESS_KEY
     * Nullable:  true
     */
    @Column(name = "PROCESS_KEY")
    private String processKey;

    /**
     * 流程定义名称
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    PROCESS_NAME
     * Nullable:  true
     */
    @Column(name = "PROCESS_NAME")
    private String processName;

    /**
     * 节点定义ID
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    NODE_DEF_ID
     * Nullable:  true
     */
    @Column(name = "NODE_DEF_ID")
    private String nodeDefId;

    /**
     * 节点定义编码
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    NODE_KEY
     * Nullable:  true
     */
    @Column(name = "NODE_KEY")
    private String nodeKey;

    /**
     * 节点定义名称
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    NODE_NAME
     * Nullable:  true
     */
    @Column(name = "NODE_NAME")
    private String nodeName;

    /**
     * 授权类型（1:级别,2:组织）
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    AUTH_TYPE
     * Nullable:  true
     */
    @Column(name = "AUTH_TYPE")
    private String authType;

    /**
     * 组织树层级
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    PATH_LEVEL
     * Nullable:  true
     */
    @Column(name = "PATH_LEVEL")
    private String pathLevel;

    /**
     * 组织树层级名称
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    PATH_NAME
     * Nullable:  true
     */
    @Column(name = "PATH_NAME")
    private String pathName;

    /**
     * 公司ID
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    COMP_ID
     * Nullable:  true
     */
    @Column(name = "COMP_ID")
    private String compId;

    /**
     * 公司名称
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    COMP_NAME
     * Nullable:  true
     */
    @Column(name = "COMP_NAME")
    private String compName;

    /**
     * 角色ID
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    ROLE_ID
     * Nullable:  true
     */
    @Column(name = "ROLE_ID")
    private String roleId;

    /**
     * 角色名称
     * <p>
     * Table:     T_WORKFLOW_AUTH
     * Column:    ROLE_NAME
     * Nullable:  true
     */
    @Column(name = "ROLE_NAME")
    private String roleName;

    private static final long serialVersionUID = 1L;
}